import type { RouteRecordRaw } from 'vue-router'

export interface UserState {
    token: string | null
    menuRoutes: RouteRecordRaw[]
    id: string | null
    userName: string | null
    userAvatar: string | null
    userType: string | null
}

export interface LoginFormData {
    userId?: string
    password?: string
}
export interface RegisterFormData {
    userId?: string
    userPassword?: string
    checkPassword?: string
    userType?: string
}
export interface AddFormData {
    userId?: string
    userName?: string
    userType?: string
}

export interface userQueryRequestData {
    userId? : String
    userName? : String
    realName? : String
    gender? : Number
    email? : String
    phone? : String
    userProfile? : String
    userPoint? : Number
    userLevel? : Number
    userType? : String
    userStats? : Number
}
export interface userUpdateRequestData {
    id : number
    userId? : String
    userName? : String
    realName? : String
    gender? : Number
    identityCardType? : Number
    email? : String
    phone? : String
    userProfile? : String
    userPoint? : Number
    userMoney? : Number
    userLevel? : Number
    userType? : String
    userStats? : Number
}
export interface userUpdatePasswordRequestData {
    id : number
    oldPassword? : String
    newPassword? : String
}
export interface ResponseData {
    data?: object
    code?: number
    message?: string
}